#!/usr/bin/env ruby
require 'rubygems'
require 'uuidtools'
require 'benchmark'

VALUE = "9573b8d4-1ce6-4693-8819-39e3644c33cc"

n = 100000
Benchmark.bmbm do |x|
  x.report { n.times { v = UUIDTools::UUID.parse(VALUE).raw } }
  x.report { n.times { v = [VALUE.delete('-')].pack("H*") } }
end
